<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: inc.validate_password.php 241 2013-09-22 12:15:12Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 241 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-22 12:15:12 +0000 (Sun, 22 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

function validate_password($plain, $encrypted) {
	if(!empty($plain) && !empty($encrypted)) {
//	die(md5(crypt($plain, '$6$rounds=1000$'.SALT_KEY.'$')));
		if($encrypted == md5(crypt($plain, '$6$rounds=1000$'.SALT_KEY.'$')))
			return true;
	}
	return false;
}
?>